<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";
	require_once "../../_func/__MysqlFunc.php";
	require_once "../../_func/_CodeFunc.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: 농협전북지부 ERP시스템 ::</title>
<link href="../css/layout.css" type="text/css" rel="stylesheet" />
<link type="text/css" href="/css/hot-sneaks/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
</head>
<script type="text/javascript">
	function input_search()
	{
		document.theForm.submit();
	}
	$(document).ready(function(){
		if ($("#item1").val()!="")
		{
			fncGetItemJSON('item', 2, $("#item1").val(), $('#item2'));
		}
	});
</script>
<body>
<div id="wrap">
<!-- header start -->
<? include("../_layout/head.inc"); ?>
<!-- header end -->
<!-- search start -->
<? include("./item_search.php"); ?>
<!-- search end -->
<!-- container start -->
	<div id="container">
    	<div class="subtit">
        	<p class="subtt03"><span>품목관리 > 선별관리</span></p>
		</div>
        <div class="contents">
        	<p class="tableTitle"><span class="b"></span>[원물] 조회</p>
			<form name="theForm" method="post" action="./item_manage_sort.html">
			<input type="hidden" name="mode" id="mode" />
			<input type="hidden" name="menu1" id="menu1" value="<?=$menu1?>" />
			<input type="hidden" name="menu2" id="menu2" value="<?=$menu2?>" />
        	<table cellpadding="0" cellspacing="1" border="0" class="erpTable td3">
            	<tr>
                	<th>농협명</th>
					<td>
                    	<select	name="jseq" id="jseq">
							<option value="">농협명</option>
							<?
								$codedata = & JBNH_GetSelect(0);
								JBNH_PrintOption($codedata, $jseq);
							?>
                        </select>
                    </td>
                    <th>품목</th>
					<td>
                    	<select name="item1" id="item1" onchange="fncGetItemJSON('item', 2, this.value, $('#item2'));">
                        	<option value="">품목</option>
							<?
								$codedata = & Code_GetSelect("A", 1, 0);
								Code_PrintOption($codedata, 1, $item1);
							?>
                        </select>
                    </td>
                    <th>품종</th>
					<td>
                    	<select name="item2" id="item2">
                        	<option value="">품종</option>
                        </select>
						<input type="hidden" name="oitem2" id="oitem2" value="<?=$item2?>" />
                    </td>
				</tr>
            </table>
			</form>
           <div class="BtnList">
            	<ul>
                  	<li><input type="button" class="btn_search" title="조회" onclick="input_search();" /></li>
                </ul>
            </div>

<!-- 입고등록당시 선별유무를 선택하기때문에 선별된 품목은 출하로 빠지고 선별되지 않은 품목만 조회결과로 출력됨. 그래서 선별유무항목이 필요가 없음,-->

			<p class="tableTitle"><span class="b"></span>[원물] 조회결과</p>
			<div class="listframe">
				<table cellpadding="0" cellspacing="1" border="0" class="erpTable">

					<tr>
						<th>입고일자</th>
						<th>농협명</th>
						<th>생산자</th>
						<th>원산지</th>
						<th>품목</th>
						<th>품종</th>
						<th>중량</th>
						<th>선별결과등록</th>
					</tr>
<!-- list start -->
<? include("./item_manage_sort_list.php"); ?>
<!-- list end -->
				</table>
			</div>
		</div>
    </div>
<!-- footer start -->
<? include("../_layout/footer.inc"); ?>
<!-- footer end -->
</div>
</body>
</html>
